/* --------------------------------------------------------
 * Copyright (c) aeky , Inc.  All rights reserved.
 * --------------------------------------------------------
 */
package com.aeky.server.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.aeky.domain.Department;
import com.aeky.domain.Menu;
import com.aeky.server.dao.IDepartmentDao;
import com.aeky.server.dao.IMenuDao;
import com.aeky.server.service.ITestService;

/**
 * 
 * @author aeky
 */
@Service("testService")
public class TestServiceImpl implements ITestService {

    @Autowired
    private IMenuDao menuDao;

    @Autowired
    private IDepartmentDao departmentDao;

    /*
     * 
     * @see com.aeky.server.service.ITestService#getAllMenuTest()
     */
    @Override
    public void getAllMenuTest() {
        List<Menu> list = menuDao.findAllMenu();
    }

    /*
     * (non-Javadoc)
     * 
     * @see com.aeky.server.service.ITestService#getAllDeptTest()
     */
    @Override
    public void getAllDeptTest() {
        List<Department> list = departmentDao.getAllDeptTest();
        System.out.println(list.size());
    }
}
